from django.http import HttpResponse
from django.shortcuts import render, redirect


# Create your views here.
# 每个方法都要加request
# 1. HttpResponse 放回字符串
# 2. render 返回页面
# 3. redirect 重定向
def index(request):
    return HttpResponse("OK")

def login(request):
    return render(request, 'login.html')

def register(request):
    return redirect('/user/index')
